package com.ybkj.o2o.zhuanche.service;

import com.ybkj.o2o.zhuanche.common.query.CarTypeQuery;
import com.ybkj.o2o.zhuanche.entity.CarType;
import com.ybkj.o2o.zhuanche.entity.CarTypeCriteria;
import com.ybkj.o2o.zhuanche.entity.CarTypeRel;

import java.util.List;

public interface CarTypeService extends BaseService<CarType, CarTypeCriteria, Long> {

  CarType findByCarTypeId(Long carTypeId, String appKey);

  List<CarType> findAll(Long companyId, String appKey);
  
  int deleteById(Long id, String appKey);

  List<CarType> findByParams(CarTypeQuery carTypeQuery);

  Long countByParams(CarTypeQuery carTypeQuery);

  Long countByCompanyIdV4up(Long companyId, String companyName, String appKey);

  List<CarType> queryCarTypeV4up(CarTypeQuery carTypeQuery);

  List<CarType> findByCarType(String carType, String appKey);

  List<CarType> findByIds(List<Long> ids);

  List<CarType> findByAreaId(Long areaId, String appKey);

int insertCarTypeRel(CarTypeRel carTypeRel);

List<CarTypeRel> getCarTypeRel(Long id,String appKey);

void deleteRel(Long carTypeId,String appKey);

CarType getCarTypeByTypeName(String typeName, String appKey);

List<CarType> getCarTypeByIftaxi(String ifTaxi, String appKey);

}
